package com.tree.shardingjdbc.demo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName com.tree.shardingjdbc.demo.entity
 * Description: <类功能描述>. <br>
 * <p>
 * <使用说明>
 * </p>
 * @Author tree
 * @Date 2019-06-02 23:50
 * @Version 1.0
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Entity(name = "user")
public class UserEntity implements Serializable{
    private static final long serialVersionUID = -6171110531081112401L;
    @Id
    private int id;
    @Column(length = 32)
    private String name;
    @Column(length = 16)
    private int age;

    @Column(length = 32)
    private String email;

//    @Column(length = 32)
//    private int creatorId;
//    @Column(length = 32)
//    private int modifierId;
//
//    private Date createTime;
//
//    private Date modifyTime;

}
